﻿using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using ybx_caller.service;

namespace ybx_caller.controller
{
    public class YhCallController : ApiController
    {
        // 同步版本的 POST 方法
        [HttpPost]
        [Route("api/yhcall")]
        public HttpResponseMessage KPostYbCall1([FromBody] object value)
        {
            // 处理 POST 请求的逻辑
            string backData = CallYhYB.getYbBack("1101","","","","","");
            // 示例：返回一个简单的确认信息
            return Request.CreateResponse(HttpStatusCode.OK, backData);
        }
    }
}
